package com.itheima.search.domain;

import cn.hutool.log.Log;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SearchResult {

    // 总记录数
    private Long total;

    // 总页数
    private Long pages;

    // 结果集
    private List<NewsVO> records;

    public static SearchResult empty() {
        return new SearchResult(0L, 0L, null);
    }
}
